package main

import (
	"fmt"
)

func main() {
	amount := 2
	seats := 1
	if amount < 2 {
		fmt.Println("余额不足，请充值")
		return
	}
	amount -= 2
	seat(seats)
}

// 抽离判断是否有座逻辑
func seat(seats int) {
	if seats > 0 {
		fmt.Println("请坐")
	} else {
		fmt.Println("暂时无座")
	}
}
